package com.hehui.partimejob.service.model;

import android.content.Context;

import com.hehui.partimejob.service.inter.OnStateChangeListener;


public class BaseModel {
public final String TAG = getClass().getSimpleName();
    public Context context;
    public OnStateChangeListener listener;

    public <T> void setListener(OnStateChangeListener<T> listener) {
        this.listener = listener;
    }

    public BaseModel(Context context) {
        this.context = context;
    }

    public boolean hasNotListener() {
        return listener == null;
    }

    public String getTAG(){
        return TAG;
    }

}
